import http from './../../../base/api/public.js'
import querystring from 'querystring'
let sysConfig = require('@/../config/sysConfig')
let apiUrl = sysConfig.xcApiUrlPre;

export const cms_page_list = (page,size,params) =>{
  //http.requestQuickGet("http://localhost:8086/cms/"+page+"/"+size);
  //                      /api/cms/1/10

  //http://localhost:8086/cms/1/10?siteId=5a751fab6abb5044e0d19ea1&pageAliase=%E9%A6%96%E9%A1%B5&templateId=5a962b52b00ffc514038faf7
  let stringify = querystring.stringify(params);
  return http.requestQuickGet(apiUrl+"/cms/"+page+"/"+size+"?"+stringify);
}
